package cn.lopr.im.android.utils;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

/**
 * @author shuangyang7
 * @date 2020/12/29 21:20
 */
public class MyApplication extends Application {
    private String TAG;

    @SuppressLint("StaticFieldLeak")
    public static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        AppUtil helper = new AppUtil();
//        helper.register(MyApplication.this, new AppUtil.OnAppStatusListener() {
//
//            @Override
//            public void onFront() {
//                Log.i(TAG, "onFront: " + "front");
//            }
//
//            @Override
//            public void onBack() {
//                Log.i(TAG, "onFront: " + "back");
//            }
//        });

    }

    public static Context getContext() {
        return context;
    }


}
